package com.bubbles.workspace.sync.repository.source.metadata;


import com.bubbles.engine.data.core.repository.BaseRepository;
import com.bubbles.workspace.sync.entity.source.metadata.SourceColumn;
import com.bubbles.workspace.sync.key.source.metadata.SourceColumnKey;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>description: 源数据源-列 </p>
 *
 * @author CryptoNeedle
 * @date 2025-06-20
 */
@Repository
public interface SourceColumnRepository extends BaseRepository<SourceColumn, SourceColumnKey> {
    
    @Query("FROM SourceColumn WHERE sourceCatalogName = :sourceCatalogName AND sourceDatabaseName = :sourceDatabaseName")
    List<SourceColumn> listByDatabase(String sourceCatalogName, String sourceDatabaseName);
}